package cn.tedu.person.service;


import cn.tedu.person.pojo.dto.DepartmentInsertDTO;
import cn.tedu.person.pojo.dto.DepartmentUpdateDTO;
import cn.tedu.person.pojo.vo.DepartmentIndexVO;
import cn.tedu.person.pojo.vo.DepartmentStandardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IDepartmentService {

    void addNew(DepartmentInsertDTO departmentInsertDTO);

    /**
     * 展示所有部门的列表
     * @return
     */
    List<DepartmentIndexVO> list();

    void delete(Long id);

    void updateInfoById(Long id, DepartmentUpdateDTO departmentUpdateDTO);

    DepartmentStandardVO getStandardById(Long id);

}
